using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Noebe.Orm;

namespace Pixysoft.Framework.Security.Entity
{
    public interface Role
    {
        [OrmPrimaryKey]
        string RoleName { get;set;}

        string Description { get;set;}

        bool IsInnerRole { get;set;}

        List<Permission> PermissionList { get;set;}

        void AddToPermissionList(params Permission[] values);
        void RemoveFromPermissionList(params Permission[] values);
        Permission SelectPermissionList(object upk);
        bool PermissionListContains(object upk);
    }
}
